#!/usr/bin/env coffee

export default (a,b)=>
  d = 0
  for i,pos in a
    n = i ^ b[pos]
    if n == 0
      d += 8
    else
      x = 0b10000000
      loop
        if x & n
          break
        else
          x = x >> 1
          ++d
      break
  d
